package com.bobgao.my_first_demo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

@Data
@TableName("homework")

public class HomeWorkEntity {

    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    private String workName;

    private String workTeacher;

    private String workContent;

    private String workAsk;

    private String workStu;

    private int workDone;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getWorkName() {
        return workName;
    }

    public void setWorkName(String workName) {
        this.workName = workName;
    }

    public String getWorkTeacher() {
        return workTeacher;
    }

    public void setWorkTeacher(String workTeacher) {
        this.workTeacher = workTeacher;
    }

    public String getWorkContent() {
        return workContent;
    }

    public void setWorkContent(String workContent) {
        this.workContent = workContent;
    }

    public String getWorkAsk() {
        return workAsk;
    }

    public void setWorkAsk(String workAsk) {
        this.workAsk = workAsk;
    }

    public String getWorkStu() {
        return workStu;
    }

    public void setWorkStu(String workStu) {
        this.workStu = workStu;
    }

    public int getWorkDone() {
        return workDone;
    }

    public void setWorkDone(int workDone) {
        this.workDone = workDone;
    }

    @Override
    public String toString() {
        return "HomeWorkEntity{" +
                "id=" + id +
                ", workName='" + workName + '\'' +
                ", workTeacher='" + workTeacher + '\'' +
                ", workContent='" + workContent + '\'' +
                ", workAsk='" + workAsk + '\'' +
                ", workStu='" + workStu + '\'' +
                ", workDone='" + workDone + '\'' +
                '}';
    }
}
